package AnsatzTilo;
import java.util.Vector;


public class Reporter{
	
	Vector<String> history; 
	int queuMax;
	int stack;
	int arrivals;
	int completions;
	
	public Reporter() {
		this.history = new Vector<String>(0);
		this.queuMax = 0;
		this.stack = 0;
		this.arrivals = 0;
		this.completions = 0;
	}
	
	public int getStack() {
		return stack;
	}

	public void setStack(int stack) {
		this.stack = stack;
	}

	public int getArrivals() {
		return arrivals;
	}

	public void setArrivals(int arrivals) {
		this.arrivals = arrivals;
	}
	
	public void increaseArrival() {
		this.arrivals++;
	}

	public int getCompletions() {
		return completions;
	}

	public void setCompletions(int completions) {
		this.completions = completions;
	}
	
	public void increaseCompletion() {
		this.completions++;
	}
	
	public void addEntry(String entry){
		this.history.add(entry);
	}
	
	public void setQueuMax(int max){
		if(max > this.queuMax){
			this.queuMax = max;
		}
	}
		
	public int getMax(){
		return this.queuMax;
	}
	
	public void printHistory(){
		String acc = "";
		for(int i = 0; i < this.history.size(); i++){
			acc += this.history.get(i) + "\n";
		}
		System.out.println(acc);
	}

}
